from django.db import models
from farmers.locations.models import Location
from farmers.crops.models import Crop_Type

class Market_Price(models.Model):
    price = models.DecimalField(decimal_places=2,max_digits=10)
    crop = models.ForeignKey(Crop_Type)
    date = models.DateField()
    updated_date = models.DateField()
    def __unicode__(self):
        return self.crop

class Selling_Price(models.Model):
    price = models.DecimalField(decimal_places=2,max_digits=10)
    crop = models.ForeignKey(Crop_Type)
    date = models.DateField()
    updated_date = models.DateField()
    def __unicode__(self):
        return self.crop
